package com.wanshi.service;

import com.wanshi.mapper.UserMapper;
import com.wanshi.po.User;
import com.wanshi.po.UserPo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;


@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserByNameAndPsd(String username, String password) {
        return userMapper.findUserByNameAndPsd(username,password);
    }

    public List<UserPo> getScoreListOfCls(String clsname){
        return userMapper.getScoreListOfCls(clsname);
    }

    public void modifyPsd(Integer user_id, String newpsd) {
        userMapper.modifyPsd(user_id,newpsd);
    }

    public List<String> getCls() {
        return userMapper.getCls();
    }
}
